package utils;

import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;

/**
 * @author yhl
 * @description 类说明
 * @date 2023-11-28 11:10
 * @email 2919886673@qq.com
 */
public class BeanUtil {

    public static void copyProperties(Object target, Object source) {

        try {
            BeanUtils.copyProperties(target, source);
        } catch (IllegalAccessException | InvocationTargetException e) {
            throw new RuntimeException(e);
        }
    }
}
